<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
    <div class="searchBar">
        <ul class="searchContent" style="height:30px">
            <li>
                <label  id="login_username"><@label key='timejob_code.C,colon'>作业编号：</@label></label>
                <input type="text" name="jobCode" value="${condition.jobCode!''}"/>
            </li>
            <li>
                <label id="login_username"><@label key='timejob_desc.C,colon'>作业描述：</@label></label>
                <input type="text" name="jobDesc" value="${condition.jobDesc!''}"/>
            </li>
            <li>
                <label ><@label key='timejob_enableFlag.C,colon'>状态：</@label></label>
                <select name="enableFlag">
                    <option value ><@label key='all.C'>所有</@label></option>
                    <option value="0" <#if condition.enableFlag?? && condition.enableFlag == 0> selected</#if>><@label key='disable.C'>禁用</@label></option>
                    <option value="1" <#if condition.enableFlag?? && condition.enableFlag == 1> selected</#if>><@label key='enable.C'>启用</@label></option>
                </select>
            </li>
            <li style="width:100px"><div class="buttonActive"><div class="buttonContent"><button type="submit"><@label key='query.B'>查询</@label></button></div></div></li>
        </ul>
    </div>
</div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="TIMEJOB_ADD" labelKey="add.B,timeJob.C" defalutName="新增定时作业">
            <li><a class="add" target="dialog" mask="true"  width="650" height="300" rel="addTimeJob"
            href="${rc.getContextPath()}/manage/timejob/addTimeJob?navTabId=${navTabId!''}"><span><@label key="add.B,timeJob.C">新增定时作业</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="TIMEJOB_EDIT" labelKey="edit.B,timeJob.C" defalutName="修改定时作业">
            <li><a class="edit" target="dialog" mask="true"  width="650" height="300" rel="editTimeJob"
            href="${rc.getContextPath()}/manage/timejob/editTimeJob?navTabId=${navTabId!''}&jobCode={timejob_id}"><span><@label key="edit.B,timeJob.C">修改定时作业</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="TIMEJOB_DO" labelKey="do_timeJob.B" defalutName="立即执行">
            <li><a class="do" target="ajaxTodo"
            href="${rc.getContextPath()}/manage/timejob/doExecuteTimedJob?navTabId=${navTabId!''}&jobCode={timejob_id}"><span><@label key="do_timeJob.B">立即执行</@label></span></a></li></@buttonRight>
             <@buttonRight menuCode="TIMEJOB_DELETE" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="ajaxTodo" title="<@label key='delete_sure.D,timeJob.C'>确认删除定时作业？</@label>"
            href="${rc.getContextPath()}/manage/timejob/deleteTimeJob?navTabId=${navTabId!''}&jobCode={timejob_id}"><span><@label key="delete.B,timeJob.C">删除定时作业</@label></span></a></li></@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="130">
        <thead>
            <tr>
                <th width="80" orderField="jobCode" ><@label key='timejob_code.C'>作业编号</@label></th>
                <th width="80"><@label key='timejob_desc.C'>作业描述</@label></th>
                <th width="100"><@label key='timejob_class.C'>作业类名</@label></th>
                <th width="100"><@label key='timejob_cronDesc.C'>周期描述</@label></th>
                <th width="60"><@label key='timeZoneCode.C'>时区</@label></th>
                <th width="80"><@label key='lastExecutionTime.C'>上次执行时间</@label></th>
                <th width="50"><@label key='timejob_enableFlag.C'>状态</@label></th>
                <th width="50"><@label key='concurrent.C'>是否并行</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as job>
            <tr target="timejob_id" rel="${job.jobCode!''}">
                <td>${job.jobCode!''}</td>
                <td>${job.jobDesc!''}</td>
                <td>${job.jobClass!''}</td>
                <td>${job.cronDesc!''}</td>
                <td>${job.javaTimeZone!''}</td>
                <td>${(job.lastExecutionTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td><#if job.enableFlag == 1><@label key='enable.C'>启用</@label><#else><@label key='disable.C'>禁用</@label></#if></td>
                <td><#if job.concurrent == 1><@label key='yes.C'>是</@label><#else><@label key='no.C'>否</@label></#if></td>
            </tr>
        </#list>
        <#else>
        <tr target="timejob_id">
                <td colspan="7" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="timejob_id">
                <td colspan="7" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
        <#include "/common/panelBar.html">
</div>